<?php

use Illuminate\Database\Seeder;

use Cartalyst\Sentinel\Laravel\Facades\Sentinel;

class PermissionsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $role = Sentinel::findRoleById(1);

        $role->permissions = [
		    'admin' => true
		];

		$role->save();

        $role = Sentinel::findRoleById(2);

        $role->permissions = [
            'user.query' => true
        ];

        $role->save();
    }
}
